package com.lw.smartdevice.events;

import com.lw.smartdevice.constans.DeviceStatus;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/24 22:45
 * 设备连接的事件
 */
public class DevicePowerEvent {
    private String deviceId;//连接设备的编号
    private String ip;//设备连接的ip
    private DeviceStatus deviceStatus;

    public DevicePowerEvent(String deviceId, String ip, DeviceStatus deviceStatus) {
        this.deviceId = deviceId;
        this.ip = ip;
        this.deviceStatus = deviceStatus;
    }

    public DeviceStatus getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(DeviceStatus deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}
